<div class="page-header">
    <div class="pull-left">
        <h1 class="content-title"><%= __('digital.dictionary') %></h1>
        <ul class="fl">
            <li>
                <button class="btn btn-block btn-info newEnum"><i class="fui-plus-circle icon-menu"></i>
                    <span><%= __('digital.addEnumeration') %></span>
                </button>
            </li>
        </ul>
    </div>
</div>
<div class="dolphin-col-24 main" id="myContent">
    <div class="row">
        <div class="col-md-6">
            <div class="panel panel-primary box">
                <div class="panel-heading box-title">
                    <h3 class="panel-title">
                        <i class="fa fa-table fa-lg" aria-hidden="true"></i>
                        <%= __('digital.enumerationList') %>
                    </h3>
                </div>
                <div id="enumList"></div>
            </div>
        </div>
        <div class="col-md-6">
            <div class="panel panel-info" id="enum_option">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <i class="fa fa-list fa-lg" aria-hidden="true"></i>
                        <%= __('digital.enumerationItem') %>
                    </h3>
                </div>
                <div id="enumItemList"></div>
            </div>
        </div>
    </div>
</div>

<div class="modal" id="enum_win">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <span class="modal-title"><%= __('dictionary.enumerationMaintenance') %></span>
            </div>
            <div class="modal-body">
                <div>
                    <!-- Nav tabs -->
                    <ul class="nav nav-tabs" role="tablist">
                        <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab"
                                                                  data-toggle="tab"><%= __('dictionary.enumerationInformation') %></a></li>
                        <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab"><%= __('digital.enumerationItem') %></a>
                        </li>
                    </ul>
                    <!-- Tab panes -->
                    <div class="tab-content">
                        <div role="tabpanel" class="tab-pane active" id="home">
                            <form class="form-horizontal edit-form">
                                <input type="hidden" class="form-control" name="id">
                                <div class="form-group">
                                    <label class="col-md-offset-1 col-md-2 control-label"><%= __('digital.enumerationName') %></label>
                                    <div class="col-md-6">
                                        <input class="form-control" name="name" type="text" dol-validate="required">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-offset-1 col-md-2 control-label"><%= __('digital.enumerationCode') %></label>
                                    <div class="col-md-6">
                                        <input class="form-control" name="code" type="text" dol-validate="required">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-offset-1 col-md-2 control-label"><%= __('digital.startUsingOrNot') %></label>
                                    <div class="col-md-6">
                                        <select class="form-control" name="status" dol-validate="required">
                                            <option value="1"><%= __('dictionary.positive') %></option>
                                            <option value="0"><%= __('dictionary.negtive') %></option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-offset-1 col-md-2 control-label"><%= __('dictionary.remarks') %></label>
                                    <div class="col-md-6">
                                        <textarea class="form-control" name="remark"></textarea>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div role="tabpanel" class="tab-pane" id="profile">
                            <form class="edit-form">
                                <div id="enum_option_list">
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary enum_submit"><%= __('account.save') %></button>
                <button type="button" class="btn btn-default" data-dismiss="modal"><%= __('account.delete') %></button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<script src="<%= global.config.publicPath %>/page/scripts/<%= path %>.js"></script>